package com.snpic.appaw.module.insure.controller.app.cxQuote;

import com.snpic.appaw.framework.common.pojo.CommonResult;
import com.snpic.appaw.module.insure.service.cxQuote.CxQuoteService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @author JiJun
 * @date 2025/9/24 9:39
 * @修改时间 2025/9/24 9:39
 * @description
 */
@Tag(name = "C端 - 车险出单 - 车险报价")
@RestController
@RequestMapping("/insure/cx-quote")
@Validated
public class CxQuoteController {
	@Resource
	private CxQuoteService cxQuoteService;


	@GetMapping("/GuaranteedDays")
	@Operation(summary = "根据车牌查询保障天数")
	@Parameter(name = "plateNo", description = "车牌", required = true)
	public CommonResult<Integer> getGuaranteedDays(@RequestParam(value = "plateNo") @NotBlank(message = "车牌号不能为空") String plateNo) {
		Integer days = cxQuoteService.getGuaranteedDays(plateNo);
		return CommonResult.success(days);
	}

	/**
	 * 信息填写界面,新建报价订单
	 */



}
